/**
 * author:Administrator
 * date:2016/2/24
 * desc:TODO
 */

'use strict';

let repoImpl = require('../../../infrastructure/persist').customerRepoImpl;
let BaseRepo = require('../../../lib/BaseRepo.js');

class customerRepo extends BaseRepo {
  constructor() {
    super(repoImpl);
  }

  /**
   * @param   {Number}  uId
   * @returns {Array}   pojo list
   */
  * findByUid(uId) {
    return yield this.repoImpl.findByUid(uId);
  }
}

let instance = new customerRepo();
module.exports = instance;
